package com.zhl.extends7;
//子类
public class B extends A {
    //子类可以继承父类的非私有成员
    public int c = 10;
    public void print3(){
        System.out.println(i);
        print1();
        //print2();私有不能用
    }

}
